package com.xiaotu.factory.factorymethod.pizzastore.order;

import com.xiaotu.factory.factorymethod.pizzastore.pizza.BJCheesePizza;
import com.xiaotu.factory.factorymethod.pizzastore.pizza.BJPepperPizza;
import com.xiaotu.factory.factorymethod.pizzastore.pizza.Pizza;

/**
 * @author 张晓
 * @create 2020-06-19 14:50
 */
public class BJOrderPizza extends OrderPizza {
    @Override
    Pizza createPizza(String orderType) {
        if (orderType.equals("cheese")){
            return new BJCheesePizza();
        }else if (orderType.equals("pepper")){
            return new BJPepperPizza();
        }
        return null;
    }
}
